{loop $list $i $t}
{if $member.id == $t.uid}
<!--自己评论-->
<li class="comment">
    <div class="d-kuan">
        
    <div class=" comment-body comment-body-answered clearfix d-buhuanhang">
        {if $t.zuijiadaan}
		    <div class="d-manyi-zuo">
				<img src="{HOME_THEME_PATH}wenda/images/manyi.png"/>
			</div>
		{/if}
        <div class="comment-text d-kuan " >
			
            <div class="author clearfix" style="padding-right: 10px;">
                
				<div class=" comment-author  d-wenzi-you d-zitiyanse-hui-96">
				    
				    
					<span class="date d-zitiyanse-hui-96" {if date('Ymd') == date('Ymd', $t.inputtime)} style="color:red"{/if} ></span> <i class="fa fa-clock-o"></i> 
					
					{dr_fdate($_inputtime)}
				    <a class="d-zuo-10" href="{$ci->content_model->author_url($t.uid)}">{$t.author}</a>
					#{php echo ($page>1 ? $i + (($page-1) * $pagesize) : $i) + 1;} 楼
				</div>
				<div class="d-kuan d-you  ">
					<div class="d-kuan-50 d-quxian-0 pull-left">
						
					</div>
					<div class="d-neikuang-10 pull-right d-imgs d-zuo-10 text pinglun d-beijing-hei-f6 d-yuanjiao-10 d-zuoyou-10 d-huanhang d-kuan-0">
						{dr_replace_emotion(nl2br(trim($t.content)))}
						
					</div>
					
					<div class="d-clear"></div>
				</div>
				<div class="comment-author d-wenzi-you d-quxian-0 d-wenzi-10 d-xia-15 d-shang-4">
				    {if $member.adminid}
				    <a class="date d-zitiyanse-hui-96" href="javascript:dr_delete_comment({$t.id});"><i class="fa fa-close"></i>删除</a>
				    {/if}
				    <!--a class="comment-reply d-zitiyanse-hui-96" href="javascript:dr_wd_comment_reply('{$t.id}', '{$t.author}');"><i class="fa fa-reply"></i>回复</a-->
					{if $index.uid == $member.uid && $index.is_comment != 1}
					<!--a class="comment-ok d-zitiyanse-hui-96" href="javascript:dr_wd_comment_ok('{$t.id}');"><i class="fa fa-check"></i> 满意了</a-->
					{/if}
					
				</div>
				

            </div>
            
            {if $t.zuijiadaan}
                <!--div class="question-answered question-answered-done"><i class="fa fa-check"></i>最佳满意答案</div-->
            {/if}
        </div>
		<div class="avatar " style="padding-right:10">
			<img src="{dr_avatar($t.uid)}" width="40" class="d-yuanjiao-50">
		</div>
    </div>
    <!--第二层-->
    {if $t.rlist}
    <ul class="children">
        {loop $t.rlist $tt}
		<div class="d-you-10 comment-body comment-body-answered clearfix d-buhuanhang d-shang-15">
			<div class="d-kuan-50">
				
			</div>
			<div class="comment-text d-kuan d-you-10">
				<div class="d-kuan d-you  ">
					<div class="d-kuan-50 d-quxian-0 pull-left">
						
					</div>
					<div class="pull-right d-neikuang-10 d-imgs d-zuo-10 text pinglun d-beijing-hei-e2 d-yuanjiao-10 d-zuoyou-10 d-huanhang d-kuan-0">
						{htmlspecialchars_decode($tt.content)}
						
					</div>
					
					
					<div class="d-clear"></div>
				</div>
				<div class="comment-author d-wenzi-you d-quxian-0 d-wenzi-10">
					{if $member.adminid}
					<a class="date d-zitiyanse-hui-96" href="javascript:dr_delete_comment({$tt.id});"><i class="fa fa-close"></i>删除</a>
					{/if}
					
					
				</div>
			</div>
			<div class="avatar ">
				<img src="{dr_avatar($t.uid)}" width="40" class="d-yuanjiao-50">
			</div>
			<div class="d-clear"></div>
		</div>
        
        {/loop}
    </ul><!-- End children -->
    {/if}
    </div>
</li>
{else}
<!--他人评论-->
<li class="comment d-shang-10">
    <div class="d-you-10 comment-body comment-body-answered clearfix d-buhuanhang">
        <div class="avatar d-zuo-10">
        	<img src="{dr_avatar($t.uid)}" width="40" class="d-yuanjiao-50">
        </div>
        <div class="comment-text d-kuan d-you-10">
			
            <div class="author clearfix">
                
				<div class=" comment-author  d-wenzi-zuo d-zitiyanse-hui-96">
				    
				    #{php echo ($page>1 ? $i + (($page-1) * $pagesize) : $i) + 1;} 楼
					<a class="d-zuo-10" href="{$ci->content_model->author_url($t.uid)}">{$t.author}</a>
					<span class="date d-zitiyanse-hui-96" {if date('Ymd') == date('Ymd', $t.inputtime)} style="color:red"{/if} ></span> <i class="fa fa-clock-o"></i> 
					{dr_fdate($_inputtime)}
				    
					
				</div>
				<div class="d-kuan d-you  ">
					
					<div class="pull-left d-neikuang-10 d-imgs d-zuo-10 text pinglun d-beijing-hei-f6 d-yuanjiao-10 d-zuoyou-10 d-huanhang d-kuan-0">
						{dr_replace_emotion(nl2br(trim($t.content)))}
						
					</div>
					<div class="d-kuan-50 d-quxian-0 pull-right">
						
					</div>
					<div class="d-clear"></div>
				</div>
				<div class="comment-author d-wenzi-zuo d-wenzi-10 d-xia-15 d-shang-4">
				    {if $member.adminid}
				    <a class="date d-zitiyanse-hui-96" href="javascript:dr_delete_comment({$t.id});"><i class="fa fa-close"></i>删除</a>
				    {/if}
				    <!--a class="comment-reply d-zitiyanse-hui-96" href="javascript:dr_wd_comment_reply('{$t.id}', '{$t.author}');"><i class="fa fa-reply"></i>回复</a-->
					{if $index.uid == $member.uid && $index.is_comment != 1}
					<!--a class="comment-ok d-zitiyanse-hui-96" href="javascript:dr_wd_comment_ok('{$t.id}');"><i class="fa fa-check"></i> 满意了</a-->
					{/if}
					
				</div>
				

            </div>
            
            {if $t.zuijiadaan}
                <!--div class="question-answered question-answered-done"><i class="fa fa-check"></i>最佳满意答案</div-->
            {/if}
        </div>
        {if $t.zuijiadaan}
		    <div class="d-manyi">
				<img src="{HOME_THEME_PATH}wenda/images/manyi.png"/>
			</div>
		{/if}
		
    </div>
    <!--第二层-->
    {if $t.rlist}
    <ul class="children">
        {loop $t.rlist $tt}
		<div class="d-you-10 comment-body comment-body-answered clearfix d-buhuanhang d-shang-15">
			<div class="avatar d-zuo-10">
				<img src="{dr_avatar($t.uid)}" width="40" class="d-yuanjiao-50 ">
			</div>
			<div class="comment-text d-kuan d-you-10">
				<div class="d-kuan d-you  ">
					
					<div class="pull-left d-neikuang-10 d-zuo-10 text pinglun d-beijing-hei-e2 d-yuanjiao-10 d-zuoyou-10 d-huanhang d-kuan-0">
						{htmlspecialchars_decode($tt.content)}
						
					</div>
					
					<div class="d-kuan-50 d-quxian-0 pull-right">
						
					</div>
					
					
					<div class="d-clear"></div>
				</div>
				{dr_date($t.inputtime, 'Y-m-d H:i:s')}
				<div class="comment-author d-wenzi-zuo d-wenzi-10 d-xia-15 d-shang-4">
					{if $member.adminid}
					<a class="date d-zitiyanse-hui-96" href="javascript:dr_delete_comment({$tt.id});"><i class="fa fa-close"></i>删除</a>
					{/if}
					
					
				</div>
			</div>
			
			<div class="d-kuan-50">
				
			</div>
			<div class="d-clear"></div>
		</div>
        
        {/loop}
    </ul><!-- End children -->
    {/if}
</li>
{/if}


{/loop}


<div class="ds-paginator text-center" style="    text-align: center;margin-bottom: 20px;">
    {$ajax_pages}
</div>
<style>
    .d-imgs img {
        width: 100%;
    }
    .d-manyi {
		position: absolute;
		right: 10px;
		width: 100px;
		height: 100px;
		padding-right: 20px;

	}
	.d-manyi-zuo {
		position: absolute;
		left: 20px;
		width: 100px;
		height: 100px;
		padding-right: 20px;

	}
</style>
